﻿//  --------------------------------
//  Copyright (c) AW Systems, Inc. All rights reserved.
//  This source code is made available under the terms of the Microsoft Public License (Ms-PL)
//  http://www.codeplex.com/SLAM/license
//  ---------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AWS.SLAM.Configuration
{
	/// <summary>
	/// Represents a field configured for a type managed by SLAM.
	/// </summary>
	public class Field
	{   
		/// <summary>
		/// The name of the field.
		/// </summary>
		public string Name { get; set; }

		/// <summary>
		/// Inidicates whether the field is Required.
		/// </summary>
		public bool Required { get; set; }

		/// <summary>
		/// The string equivalent of the SPFieldType of this field in SharePoint.
		/// </summary>
		public string SharePointType { get; set; }

		/// <summary>
		/// Creates a new Field instance.
		/// </summary>
		public Field() { }

		/// <summary>
		/// Creates a new Field instance with the given Name.
		/// </summary>
		/// <param name="name">The Name of the new field.</param>
		public Field(string name)
		{
			this.Name = name;
		}
	}
}
